package com.firebird.fekp.api.client;

import java.net.MalformedURLException;
import java.rmi.Naming;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

import com.firebird.fekp.api.FekpAppInter;

public class FekpAppClient {
	/**
	 * 执行fekp接口
	 * 
	 * @param rmiUrl
	 *            rmi://127.0.0.1:8701/fekpapp
	 * @return
	 * @throws MalformedURLException
	 * @throws RemoteException
	 * @throws NotBoundException
	 */
	public static FekpAppInter getServer(String rmiUrl)
			throws MalformedURLException, RemoteException, NotBoundException {
		FekpAppInter fekpApp = (FekpAppInter) Naming.lookup(rmiUrl);
		return fekpApp;
	}
}
